﻿using System;
using System.Windows.Forms;

namespace Tapioca.Views
{
	public partial class ProxySetting : Form
	{
		public ProxySetting()
		{
			InitializeComponent();
		}

        public string Server
        {
            get
            {
                return this.txtServer.Text;
            }
            set
            {
                this.txtServer.Text = value;
            }
        }

        public string Domain
        {
            get
            {
                return this.txtDomain.Text;
            }
            set
            {
                this.txtDomain.Text = value;
            }
        }

        public string Port
        {
            get
            {
                return this.txtPort.Text;
            }
            set
            {
                this.txtPort.Text = value;
            }
        }

		public string Username
		{
			get
			{
				return this.txtUser.Text;
			}
            set
            {
                this.txtUser.Text = value;
            }
		}

		public string Password
		{
			get
			{
				return this.txtPassword.Text;
			}
            set
            {
                this.txtPassword.Text = value;
            }
		}

		private void buttonOK_Click(object sender, EventArgs e)
		{
			this.DialogResult = DialogResult.OK;
			this.Close();
		}

		private void buttonCancel_Click(object sender, EventArgs e)
		{
			this.DialogResult = DialogResult.Cancel;
			this.Close();
		}
	}
}
